package org.langqiao.jvm.base;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class createJFrame {

	
	public static void main(String[] args) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {
		Class<?> jframeClazz = Class.forName("javax.swing.JFrame");
		Constructor ctor = jframeClazz.getConstructor(String.class);
		Object obj = ctor.newInstance("测试窗口");
		System.out.println(obj);
	}

}
